﻿#pragma once
/**
@author 何炜
@date 2011/5/24
@brief .
@details
*/


namespace GLL
{
	class Object;

	class ObjectComponent
	{
	protected:
		friend class Object;
		String _name;
		Object* _obj;

		/**.*/
		virtual bool Ok2Add(Object*){return true;}

		/**.*/
		virtual void Update(TimeMS){}

		/**.*/
		virtual void SetObject(Object* obj);

		/**.*/
		virtual void ObjectLoaded(){}
	public:
		ObjectComponent(String n):_name(n){}
	};

};//GLL
